package com.tony.jdbc.dynamic.datasource;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 * @author tony
 * @desc 自定义多数据源类，实现参考IsolationLevelDataSourceRouter
 * @date 2025/11/30 08:51
 */
public class DynamicDataSourceRouter extends AbstractRoutingDataSource {
    @Override
    protected Object determineCurrentLookupKey() {
        return DynamicDataSourceKeyHolder.getKey();
    }
}
